#include "dnode.h"

DoubleNode::DoubleNode()
{
	m_data=0;
	leftNode=NULL;
	rightNode=NULL;
}

DoubleNode* DoubleNode::get_Left()
{
	return leftNode;
}

DoubleNode* DoubleNode::get_Right()
{
	return rightNode;
}

void DoubleNode::set_Left(DoubleNode* left)
{
	leftNode=left;
}

void DoubleNode::set_Right(DoubleNode* right)
{
	rightNode=right;
}

void DoubleNode::set_data(int data)
{
	m_data=data;
}

int DoubleNode::get_data()
{
	return m_data;
}

DoubleNode::~DoubleNode()
{

}


